import axios from '@/core/utils/AxiosRequest'

/**
   * 保存
   */
const prefix = '/api/demo'
export default {
  // 下载文件
  downFile(formData) {
    return axios({
      url: `${prefix}/dowfile`,
      method: 'post',
      responseType: 'blob',
      data: formData
    })
  },
  postAarry(formData) {
    return axios.get(`${prefix}/postAarry`, formData)
  },
  postList(formData) {
    return axios.get(`${prefix}/postList`, formData)
  },
  postBeanList(formData) {
    return axios.put(`${prefix}/postBeanList`, formData)
  },
  postBeanOne(formData) {
    return axios.post(`${prefix}/postBeanOne`, formData)
  },
  getBeanOne(formData) {
    return axios.get(`${prefix}/getBeanOne`, {params: formData })
  },
  postBeanMore(formData) {
    return axios.put(`${prefix}/postBeanMore`, formData)
  },
  postRules(formData) {
    return axios.post(`${prefix}/postRules`, formData)
  },
  postBeanArry(formData) {
    return axios.post(`${prefix}/postBeanArry`, formData)
  },
  requestParams(formData) {
    return axios.get(`${prefix}/requestParams`, {params: formData })
  },
}